package xml.xstream.pojo;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import com.thoughtworks.xstream.annotations.XStreamInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@XStreamAlias("bean")

public class Bean {
    @XStreamAsAttribute
    private String id;
    @XStreamAlias("class")
    @XStreamAsAttribute
    private String clazz;
    @XStreamImplicit
    private List<Property> property = new ArrayList<Property>();

}
